package com.atguigu.spzx.common.constant;

/**
 * <p>
 * RedisKeyConstant
 * </p>
 *
 * @author flyduck
 * @since 2023/11/4
 */
public class RedisKeyConstant {

    //用户注册手机验证码redis前缀
    public static final String USER_REGISTER_PHONE_PREFIX =  "user::register::phone::";
    //用户注册手机验证码redis过期时间（单位：分钟）
    public static final int USER_REGISTER_PHONE_EXPIRE =  5;

    //用户登录token的redis前缀
    public static final String USER_LOGIN_TOKEN_PREFIX =  "user::login::token::";
    //用户登录token的redis过期时间（单位：天）
    public static final int USER_LOGIN_TOKEN_EXPIRE =  30;

    //购物车的redis前缀
    public static final String CART_USER_ID_PREFIX = "cart::userId::";
}
